//
//  Item.m
//  tradersOnMap
//
//  Created by bilmuh bilmuh on 04.05.2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Item.h"


@implementation Item

@synthesize itemID, itemTitle, description, imageURL, latitude, longitude, price;

-(CLLocationCoordinate2D) coordinate
{
	CLLocationCoordinate2D coords;
	coords.latitude = [self.latitude doubleValue];
	coords.longitude = [self.longitude doubleValue];
	
	return coords;
}

-(NSString *) title
{
	return self.itemTitle;
}

-(NSString *) subtitle
{
	return self.description;
}

@end
